package com.example.bootwithmybatis.controller;

import com.example.bootwithmybatis.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//文章地址https://blog.csdn.net/bntx2jsqfehy7/article/details/79040349
@RestController
@RequestMapping(value = "/test")
public class OrderTestTransactionalController {

    @Autowired
    private TestService userService;

    @RequestMapping("/test1")
    public void test(){
        userService.parent();
    }
}
